﻿
//------------------------------------------------------------------------------

using System;
using System.ComponentModel.DataAnnotations;

namespace Apps.Models.MIS
{

    public partial class MIS_Article_CommentModel
    {

        [Display(Name = "ID")]
        public override string Id { get; set; }

        [MaxWordsExpression(50)]
        [Display(Name = "文章ID")]
        public override string ArticleId { get; set; }

        [MaxWordsExpression(50)]
        [Display(Name = "用户")]
        public override string UserId { get; set; }

        [MaxWordsExpression(50)]
        [Display(Name = "昵称")]
        public override string TrueName { get; set; }

        [MaxWordsExpression(255)]
        [Display(Name = "IP")]
        public override string IP { get; set; }

        [MaxWordsExpression(4000)]
        [NotNullExpression]//不能为空
        [Display(Name = "内容")]
        public override string BodyContent { get; set; }

        [DateExpression]//如果填写判断是否是日期
        [Display(Name = "创建时间")]
        public override DateTime? CreateTime { get; set; }

        [IsNumberExpression]//如果填写判断是否是数字
        [Display(Name = "是否回复")]
        public override int? IsReply { get; set; }

        [MaxWordsExpression(4000)]
        [Display(Name = "回复内容")]
        public override string ReplyContent { get; set; }

        [DateExpression]//如果填写判断是否是日期
        [Display(Name = "回复时间")]
        public override DateTime? ReplyTime { get; set; }



    }
}

